<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
/*
 *函数的三要素:
  * 1. 函数的名  自解释
  * 2. 函数的参数
  * 3. 函数的返回值
  *
 */
function randomInt(from, to){
    return parseInt(Math.random() * (to - from + 1) + from)
}

</script>
</body>
</html>